package com.pgeg.registry;

import net.minecraft.item.Item;
import net.minecraft.util.Identifier;
import net.minecraft.util.registry.Registry;

import static com.pgeg.listener.ItemListener.*;
import static com.pgeg.util.Reference.MODID;

public class ItemRegistry {


    public static void registerItem() {

        /*Magic Items*/
        initItem("mana_crystal_dust",MANA_CRYSTAL_DUST);
        initItem("wand", WAND);
        initItem("compendium", COMPENDIUM);
        initItem("rune_fire", RUNE_FIRE);
        initItem("air_shard", AIR_SHARD);
        initItem("fire_shard", FIRE_SHARD);
        initItem("earth_shard", EARTH_SHARD);
        initItem("water_shard", WATER_SHARD);
        initItem("order_shard", ORDER_SHARD);
        initItem("entropy_shard", ENTROPY_SHARD);

        /*Other Items*/
        initItem("plant_treat", PLANT_TREAT);
        initItem("pig_leather", PIG_LEATHER);

        /*Ingots*/
        initItem("orichalcum_ingot", ORICHALCUM_INGOT);
        initItem("saturnium_ingot", SATURNIUM_INGOT);
        initItem("brimstone_ingot", BRIMSTONE_INGOT);
        initItem("meteorite_ingot", METEORITE_INGOT);
        initItem("mithril_ingot", MITHRIL_INGOT);
        initItem("copper_ingot", COPPER_INGOT);
        initItem("silver_ingot", SILVER_INGOT);
        initItem("redstone_cut_ingot", REDSTONE_INGOT);
        initItem("redstone_ingot", REDSTONE_CUT_INGOT);

        /*Spawn Eggs*/
        initItem("futa_cow_spawn_egg", FUTA_COW_SPAWN_EGG);
    }

    private static void initItem(String path, Item item) {
        Registry.register(Registry.ITEM, new Identifier(MODID, path), item);
    }
}
